package MultiMediaPlayer.Media;

import MultiMediaPlayer.Interface.PlatForm;

//桥接模式
public class MP4 implements Media {

    private PlatForm platForm;

    public MP4(PlatForm platForm){
        this.platForm = platForm;
    }

    @Override
    public void play() {
        platForm.decode("MP4");
        System.out.println("正在播放MP4视频");
    }

    @Override
    public String getDescription() {
        return "MP4视频文件(" + platForm.getDescription() + ")";
    }

    @Override
    public String getName() {
        return "MP4";
    }
}
